package org.cxy.monitor;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "monitor")
public class MonitorProperties {
    private boolean enabled = true;
    private String[] basePackages = {"org.cxy.demo"};
    private long slowThreshold = 1000L; // 慢方法阈值(ms)

    // getters and setters
    public boolean isEnabled() { return enabled; }
    public void setEnabled(boolean enabled) { this.enabled = enabled; }

    public String[] getBasePackages() { return basePackages; }
    public void setBasePackages(String[] basePackages) { this.basePackages = basePackages; }

    public long getSlowThreshold() { return slowThreshold; }
    public void setSlowThreshold(long slowThreshold) { this.slowThreshold = slowThreshold; }
}